package download.itydl.com.sinlethread.mutilthread.bean;

/**
 * 数据库表中一行数据对应一个ThreadInfo   多线程时对应多行
 */
public class ThreadInfo {
    private int threadId;
    /**
     * 一条url对应一个本地下载文件
     * 一条url会对应多个线程
     */
    private String url;
    private long start;
    private long end;
    private long finished;

    public ThreadInfo(){}

    public ThreadInfo(int threadId, String url, long start, long end, long finished) {
        this.threadId = threadId;
        this.url = url;
        this.start = start;
        this.end = end;
        this.finished = finished;
    }

    public int getThreadId() {
        return threadId;
    }

    public void setThreadId(int threadId) {
        this.threadId = threadId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getStart() {
        return start;
    }

    public void setStart(long start) {
        this.start = start;
    }

    public long getEnd() {
        return end;
    }

    public void setEnd(long end) {
        this.end = end;
    }

    public long getFinished() {
        return finished;
    }

    public void setFinished(long finished) {
        this.finished = finished;
    }
}
